package com.ocom.mqsimple.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SavePhotoVo implements Serializable {
    private static final long serialVersionUID = 188410287171603496L;
    @NotNull(message = "comId 不能为空")
    @JsonProperty("comId")
    private Long comId;
    @NotNull(message = "pId 不能为空")
    @JsonProperty("pId")
    private Long pId;
    @NotEmpty(message = "pPhotoUrl 不能为空")
    @JsonProperty("pPhotoUrl")
    private String pPhotoUrl;
}
